var j=1;
function addInstrutor(){
	var id_disc = document.usuario.disciplina0.value;
	var disc = document.getElementById("disciplina").options[document.getElementById("disciplina").selectedIndex].text;
	

	if (j<=2){
		var part1 =	"<br><select name=\"disciplina"+j+"\"><option ";
		var part2="value='";
		var part3 = "'>";
		var part4 = "</option></select>";
	
			if ((document.usuario.tipoinstrutor[0].checked)==true){
					var part5 = "<label>Tipo: </label><input name =\"tipoinstrutor"+j+"\" type=\"radio\" value=\"Titular\" CHECKED>Titular<input name =\"tipoinstrutor"+j+"\" type=\"radio\" value=\"Secundario\">Secund&aacute;rio";
			}else{
					var part5 = "<label>Tipo: </label><input name =\"tipoinstrutor"+j+"\" type=\"radio\" value=\"Titular\">Titular<input name =\"tipoinstrutor"+j+"\" type=\"radio\" value=\"Secundario\" CHECKED>Secund&aacute;rio";
			}	
		document.getElementById("duplicadisciplina").innerHTML += part1+part2+id_disc+part3+disc+part4+part5;
		j++;
	}
	else{
			window.alert("Cada instrutor pode cadastrar somente 03 disciplinas!!!");		
		}
}
